/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package olympicgameslogic;

import java.io.Serializable;

/**
 *
 * @author 75
 */
public class AlternateNationCodes implements Serializable{
   private Nation nation;
   private int year;
   private String code;
   private Edition.GAMESEDITION edition;

   public AlternateNationCodes() {
   }

   public AlternateNationCodes(Nation nation,int year, String code, Edition.GAMESEDITION edition) {
      this.nation = nation;
      this.year = year;
      this.code = code;
      this.edition = edition;
   }

   /**
    * @return the year
    */
   public int getYear() {
      return year;
   }

   /**
    * @return the Code
    */
   public String getCode() {
      return code;
   }

   /**
    * @return the edition
    */
   public Edition.GAMESEDITION getEdition() {
      return edition;
   }

   /**
    * @param year the year to set
    */
   public void setYear(int year) {
      this.year = year;
   }

   /**
    * @param code the code to set
    */
   public void setCode(String code) {
      this.code = code;
   }

   /**
    * @param edition the edition to set
    */
   public void setEdition(Edition.GAMESEDITION edition) {
      this.edition = edition;
   }

   @Override
   public String toString() {
      return "Nation: " + nation.getName() + " Code: " + nation.getCode() + 
	      "\nAlternate - Year: " + year + " Edition: "+ edition + " Code: " +code;
   }
   
   
}
